{% if attachments_to_download %}
  <script type="text/javascript">
    {% for attachment in attachments_to_download %}
      (function($){
        var $iframe = $('<iframe>')
            .hide()
            .prop('src', '{{ attachment }}')
            .appendTo('body');
      })(ralph.jQuery);
    {% endfor %}
  </script>
{% endif %}
